package org.gr.ias.common.entity;

import java.io.Serializable;

public class UserAuth implements Serializable {
    /** id*/
    private String id;

    /** 用户id*/
    private String userId;

    /** 认证类型(01:手机认证、02:邮箱认证、03:个人身份认证、04:企业身份认证、05:机构荣誉认证)*/
    private String authType;

    /** 认证状态(SQRZ:申请认证、RZTG:认证通过、RZJJ:认证拒绝)*/
    private String authStatus;

    /** 是否需要人工审核(Y:是、N:否)*/
    private String manualAuth;

    /** 审核描述*/
    private String authDesc;

    /** 审核人*/
    private String approveUser;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getAuthType() {
        return authType;
    }

    public void setAuthType(String authType) {
        this.authType = authType == null ? null : authType.trim();
    }

    public String getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(String authStatus) {
        this.authStatus = authStatus == null ? null : authStatus.trim();
    }

    public String getManualAuth() {
        return manualAuth;
    }

    public void setManualAuth(String manualAuth) {
        this.manualAuth = manualAuth == null ? null : manualAuth.trim();
    }

    public String getAuthDesc() {
        return authDesc;
    }

    public void setAuthDesc(String authDesc) {
        this.authDesc = authDesc == null ? null : authDesc.trim();
    }

    public String getApproveUser() {
        return approveUser;
    }

    public void setApproveUser(String approveUser) {
        this.approveUser = approveUser == null ? null : approveUser.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserAuth other = (UserAuth) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getAuthType() == null ? other.getAuthType() == null : this.getAuthType().equals(other.getAuthType()))
            && (this.getAuthStatus() == null ? other.getAuthStatus() == null : this.getAuthStatus().equals(other.getAuthStatus()))
            && (this.getManualAuth() == null ? other.getManualAuth() == null : this.getManualAuth().equals(other.getManualAuth()))
            && (this.getAuthDesc() == null ? other.getAuthDesc() == null : this.getAuthDesc().equals(other.getAuthDesc()))
            && (this.getApproveUser() == null ? other.getApproveUser() == null : this.getApproveUser().equals(other.getApproveUser()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getAuthType() == null) ? 0 : getAuthType().hashCode());
        result = prime * result + ((getAuthStatus() == null) ? 0 : getAuthStatus().hashCode());
        result = prime * result + ((getManualAuth() == null) ? 0 : getManualAuth().hashCode());
        result = prime * result + ((getAuthDesc() == null) ? 0 : getAuthDesc().hashCode());
        result = prime * result + ((getApproveUser() == null) ? 0 : getApproveUser().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", authType=").append(authType);
        sb.append(", authStatus=").append(authStatus);
        sb.append(", manualAuth=").append(manualAuth);
        sb.append(", authDesc=").append(authDesc);
        sb.append(", approveUser=").append(approveUser);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}